<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
                           http://www.springframework.org/schema/beans/spring-beans.xsd
                           http://www.springframework.org/schema/context
                           http://www.springframework.org/schema/context/spring-context.xsd"
    xmlns="http://www.springframework.org/schema/beans" >

    <context:component-scan base-package="br.com.news.web" />

    <bean
        id="mailSender"
        class="org.springframework.mail.javamail.JavaMailSenderImpl" >

        <property name="javaMailProperties" >

            <props>

                <prop key="mail.smtp.auth" >
true
                </prop>

                <prop key="mail.smtp.starttls.enable" >
true
                </prop>

                <prop key="mail.smtp.host" >
smtp.gmail.com
                </prop>

                <prop key="mail.smtp.port" >
587
                </prop>
            </props>
        </property>

        <property
            name="username"
            value="alexandreudicf@gmail.com" />

        <property
            name="password"
            value="francis@280901" />
    </bean>

    <bean
        id="velocityEngine"
        class="org.springframework.ui.velocity.VelocityEngineFactoryBean" >

        <property name="velocityProperties" >

            <value>
                resource.loader=class
                class.resource.loader.class=org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
            </value>
        </property>
    </bean>

</beans>